
#ifndef MAP_NAME_SERVER_H
#define MAP_NAME_SERVER_H

#include "nameserverinterface.h"
#include <string>
#include <utility>
#include <map>
#include <iostream>
#include <stdlib.h>
using namespace std;
namespace cpp_lab4 {
    class MapNameServer : public NameServerInterface{
    public:
    	MapNameServer(){}
    	~MapNameServer() {}
        void insert(const HostName&, const IPAddress&);
        bool remove(const HostName&);
        IPAddress lookup(const HostName&) const;
    private:
        map<string, int> database;
    };
}

#endif
